package l2ft.gameserver.network.l2.s2c;

import l2ft.gameserver.model.Player;

public class ExVoteSystemInfo extends L2GameServerPacket
{
	private int _receivedRec, _givingRec, _time, _bonusPercent;
	private boolean _showTimer;

	public ExVoteSystemInfo(Player player)
	{
		_receivedRec = 0;
		_givingRec = player.getRecomHave();
		_time = 0;
		_bonusPercent = 0;
		_showTimer = false;
	}

	@Override
	protected void writeImpl()
	{
		writeEx(0xC9);
		writeD(_receivedRec);				//????????? ????
		writeD(_givingRec);					//??????? ????
		writeD(_time);						//?????? ???? ?????? ????????
		writeD(_bonusPercent);				// ??????? ??????
		writeD(_showTimer ? 0x01 : 0x00);	//???? ???? ?? ??????? ???? 1 - ????? ????? "????????"
	}
}